<?php

namespace app\api\controller;

use app\api\model\BigScreenModel;
use app\BaseController;

class BigScreen extends BaseController
{
    public function index()
    {
        $model = new BigScreenModel;
        $res = $model->field('id,title,content,image')
            ->where('status', 1) // 添加查询条件
            ->find();
        if ($res) {
            $this->success('获取成功', $res);
        } else {
            $this->error('获取失败');
        }
    }
}